package com.rc.evcharger.common.enums;

/**
 * 充电阶段
 * Created by sven on 2018-06-04
 */
public enum ChargePhaseEnum {
    START("START", "用户击点启动"),
    STARTING("STARTING", "启动中"),
    START_FINSHED("START_FINSHED", "已启动"),
    START_FAIL("START_FAIL", "启动失败"),

    ON_CHARGEING("ON_CHARGEING", "充电中"),

    OTHER_STOP("OTHER_STOP", "发送停止命令时，枪的状态不是充电中,直接后台结算订单"),
    SELF_STOP("SELF_STOP", "可能车充满了自动结算或是中途拔枪了"),
    EMERGENCY_STOP("EMERGENCY_STOP", "紧急停止"),

    STOP("STOP", "用户击点停止"),
    STOPING("STOPING", "停止中"),
    STOP_FINSHED("STOP_FINSHED", "已停止"),
    STOP_FAIL("STOP_FAIL", "停止失败"),

    SETTLED("STOP_FAIL", "已结算"),
    TIMING_SETTLED("STOP_FAIL", "已超时结算"),

    UNKNOWN_STATUS("UNKNOWN_STATUS","未知状态"),

    ORDER_INFO_NOTIFY("ORDER_INFO_NOTIFY", "发送帐单"),
    HAND_ORDER_INFO_NOTIFY("HAND_ORDER_INFO_NOTIFY", "手工发送帐单");

    private final String code;
    private final String msg;

    ChargePhaseEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
